package com.exercise.hospital.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期工具类
 *
 * @author admin
 */
public class TimeUtil {

    public static Date charToDate(String time) throws ParseException {

        Date date = new SimpleDateFormat("yyyy-MM-dd").parse(time);

        return date;
    }
}
